﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageNguoiDung.Master" AutoEventWireup="true" CodeBehind="DoiMatKhau.aspx.cs" Inherits="DoAn.DoiMatKhau" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 142px;
        }
        .style3
        {
            width: 228px;
        }
        .style4
        {
            text-align: right;
            width: 228px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    GroupBoxCaptionOffsetY="-28px" HeaderText="Đổi Mật Khẩu" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" Width="700px">
                    <ContentPaddings Padding="14px" />
                    <HeaderStyle Font-Size="Medium" ForeColor="Blue" HorizontalAlign="Center" />
                    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table class="style1">
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                Mật Khẩu Hiện Tại:</td>
            <td>
                <dx:ASPxTextBox ID="txtMatKhauCu" runat="server" Width="200px" Password="True">
                </dx:ASPxTextBox>
                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                    ErrorMessage="CustomValidator" 
                    OnServerValidate="CustomValidator1_ServerValidate">mật khẩu không đúng</asp:CustomValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                Mật Khẩu Mới:</td>
            <td>
                <dx:ASPxTextBox ID="txtMatKhauMoi" runat="server" Width="200px" Password="True">
                </dx:ASPxTextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                Xác Nhận Mật Khẩu:</td>
            <td>
                <dx:ASPxTextBox ID="txtXacNhanMatKhau" runat="server" Width="200px" 
                    ReadOnly="True">
                </dx:ASPxTextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtMatKhauMoi" ControlToValidate="txtXacNhanMatKhau" 
                    ErrorMessage="CompareValidator">Mật Khẩu Không Khớp</asp:CompareValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td>
                <dx:ASPxButton ID="bntDoiMatKhau" runat="server" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    OnClick="bntDoiMatKhau_Click" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" Text="Đổi Mật Khẩu">
                </dx:ASPxButton>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                        </dx:PanelContent>
</PanelCollection>
                </dx:ASPxRoundPanel>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
